package com.eolcum.evo.persistence;

import java.util.Date;

public class ScheduleSetpoint implements Comparable<ScheduleSetpoint> {
	private Date time;
	private double tempSetpoint;

	public ScheduleSetpoint() {
	}

	public synchronized Date getTime() {
		return time;
	}

	public synchronized void setTime(Date time) {
		this.time = time;
	}

	public synchronized double getTempSetpoint() {
		return tempSetpoint;
	}

	public synchronized void setTempSetpoint(double tempSetpoint) {
		this.tempSetpoint = tempSetpoint;
	}

	@Override
	public int compareTo(ScheduleSetpoint scheduleSetpoint) {
		return this.time.compareTo(scheduleSetpoint.time);
	}
}